﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Shared/MasterAdmin.master" AutoEventWireup="true" CodeFile="ApprovedEmployees.aspx.cs" Inherits="Admin_ApprovedEmployeeaspx" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<h1>
                Approved Employee
            </h1>
    <asp:ScriptManagerProxy ID="ScriptManagerProxy1" runat="server">
    </asp:ScriptManagerProxy>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
           <table id="Table1" runat="server">
        <tr>
            <td>
                Customers :
            </td>
            <td>
                <asp:DropDownList ID="ddlListEmp" runat="server" DataSourceID="SqlDataSource1" 
                    DataTextField="UserName" DataValueField="UserName">
                </asp:DropDownList>
                <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
                    SelectCommand="SELECT [UserName], [UserId] FROM [vw_aspnet_Employee] WHERE ([RoleName] = @RoleName)">
                    <SelectParameters>
                        <asp:Parameter DefaultValue="Employee" Name="RoleName" Type="String" />
                    </SelectParameters>
                </asp:SqlDataSource>
            </td>
        </tr>
        <tr>
            <td>
               IsApproved : 
            </td>
            <td>
                <asp:CheckBox ID="ckbApproved" runat="server" />
            </td>
        </tr>
        <tr>
            <td>
                <asp:Button ID="btnApproved" runat="server" Text="Approved" 
                    onclick="btnApproved_Click1" />
            </td>
            <td>
                <asp:Button ID="btnList" runat="server" Text="List customer" 
                    onclick="btnList_Click" />
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="lblMessage" runat="server" Text=""></asp:Label>
            </td>
        </tr>
    </table>
        </ContentTemplate>
    </asp:UpdatePanel>
 
</asp:Content>

